# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=windivert
pkgver=2.2.0
pkgrel=1
pkgdesc='A user-mode packet capture-and-divert package for Windows.'
url='https://github.com/basil00/Divert'
groups=('blackarch' 'blackarch-windows' 'blackarch-sniffer'
        'blackarch-networking')
license=('LGPL3')
arch=('any')
source=("$pkgname.zip::https://github.com/basil00/Divert/releases/download/v2.2.0/WinDivert-2.2.0-A.zip")
sha512sums=('550f7758abaebd65d4af945034256b8202cbb26a73474aaacfdca023cbead6be82b198d5c9f51b2f6bbb8af1b74d6c08bdce97bdd54c36f362830a4efa66191b')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm "$pkgname.zip"

  cp -a * "$pkgdir/usr/share/windows/$pkgname/"
}

